<template>
    <div class="employment-job">
        <mt-header fixed>
             <router-link to="/" slot="left">
             <mt-button icon="back">家政求职记录</mt-button>
  <mt-button icon="more" slot="right"></mt-button>
              </router-link>
        </mt-header>
      <div class="employ-list">
        <div class="const-around" v-for="(item,index) in constGet" :key="index">
          <!-- 岗位 工资 -->
         <div class="title-dirst">
            <h4>{{item.name}}</h4>
            <p>{{item.wage}}</p>
         </div>
         <!-- 住址 -->
         <div class="company-last">
           <p class="jiazheng icon-biaodiandidian">{{item.company}}</p>
         </div>
         <!-- 职位要求 -->
         <div class="position-kepp">
           <van-tag plain type="primary" round>勤快</van-tag>
           <van-tag plain type="primary" round>认真</van-tag>
           <van-tag plain type="primary" round>3-5年经验</van-tag>
           <van-tag plain type="primary" round>性格好</van-tag>
         </div>
         <!-- 人事 -->
         <div class="personnel-jiejie">
           <div class="profile-photo">
             <img :src="item.photo" alt="">
             <span>{{item.fname}}</span>
           </div>
           <!-- <div class="title-name">
           </div> -->
         </div>
         <div class="time-lis">
           <p>{{item.timeF}}</p>
         </div>
        </div>
      </div>
    </div>
</template>

<script>
import { employ } from '@/api/employment.js'
export default {
  name: 'Employment',
  data () {
    return {
      constGet: []
    }
  },
  created () {
    this.getPloyment()
  },
  methods: {
    async getPloyment () {
      const { data } = await employ()
      console.log(data)
      this.constGet = data.data
    }
  }
}
</script>

<style lang="less" scoped>
.mint-header{
    display: flex;
    left: 0px;
    top: 0px;
    height: 120px;
    background-color: #1196db;
}
.mint-header .mint-button{
color: rgba(255, 255, 255, 100);
font-size: 32px;
text-align: left;
vertical-align: middle;
}
/deep/.mintui {
  font-size: 40px;
}
.employ-list{
  width: 100%;
  height: 100%;
  margin-top: 120px;
  .const-around{
    display: flex;
    flex-direction: column;
    align-content: space-between;
    padding: 30px 30px;
    background-color: #fff;
    margin-bottom: 30px;
    .title-dirst{
      display: flex;
      flex-direction: row;
      justify-content: space-between;
     h4{
       margin: 0;
       padding: 0;
       font-size: 28px;
     }
     p{
       margin: 0;
       padding: 0;
       font-size: 26px;
     }
    }
  }
  .company-last{

   p{
      margin: 0;
      padding: 0;
      font-size: 28px;
      margin-top: 15px;
   }
  }
  /deep/.position-kepp{
    // padding-top: 10px;
    .van-tag--primary.van-tag--plain {
    color: #1989fa;
    margin-right: 10px;
    margin-top: 10px;
}
  }
  .personnel-jiejie{
    display: flex;
    flex-direction: column;
    align-content: flex-end;
    padding: 20px 0px;
    border-bottom: 1px solid #f3f3f3;
    .profile-photo{
     margin: 0;
     padding: 0;
     display: flex;
     width: 100%;
       height: 100%;
     border-radius: 30px;
     img{
       display: flex;
       width: 80px;
       height: 80px;
        border-radius: 40px;
     }
     span{
      display: flex;
      margin: 0;
      padding: 0;
      font-size: 28px;
      padding: 0px 15px;
      line-height: 80px;
      vertical-align: middle;
    }
    }
  }
  .time-lis{
    p{
      margin: 0px;
      padding: 0px;
      font-size: 26px;
      margin-top: 15px;
      color: #ccc;
    }
  }
  /deep/.icon-biaodiandidian:before {
    content: "\e65e";
    color: #ccc;
    margin-right: 5px;
}
}
</style>
